<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>类型列表</title>
	<meta name="description" content="Static & Dynamic Tables" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<!-- basic styles -->
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/common.css" rel="stylesheet" />
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/bootstrap.min.css" rel="stylesheet" />
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/font-awesome.min.css" />
	<!--[if IE 7]>
	  <link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/font-awesome-ie7.min.css" />
	<![endif]-->
	<!-- page specific plugin styles -->
	
	<!-- ace styles -->
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace.min.css" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-responsive.min.css" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-skins.min.css" />
	<!--[if lt IE 9]>
	  <link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-ie.min.css" />
	<![endif]-->
</head>
<body>

	<div class="container-fluid" id="main-container">
		<a href="#" id="menu-toggler"><span></span></a><!-- menu toggler -->
		<div class="table-header">
			类型管理 | <a style="font-size:14px;" href="<?php echo U('Type/index');?>">类型列表</a>
		</div>
		<!-- PAGE CONTENT BEGINS HERE -->
		<div class="row-fluid">
			<div class="span12">
				<table id="table_bug_report" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th style="width:100px;">Tid</th>
							<th>类型名称</th>
							<th style="width:210px;">操作</th>
						</tr>
					</thead>
											
					<tbody>
					<?php if(is_array($type)):?><?php  foreach($type as $value){ ?>
						<tr>
							<td style="width:100px;"><?php echo $value['tid'];?></td>
							<td><a href='#'><?php echo $value['ttitle'];?></a></td>
							<td style="width:210px;">
								<div class='hidden-phone visible-desktop btn-group'>
									<a href="<?php echo U('Attr/index',array('tid'=>$value['tid']));?>" class="btn btn-mini btn-success tooltip-success" data-rel="tooltip" data-placement="left"><i class="icon-edit">属性列表</i></a>
									<a href="javascript:" class="btn btn-mini btn-danger tooltip-error" data-rel="tooltip" data-placement="left" onclick="if(confirm('确定要删除吗？')) hd_ajax('<?php echo U('del_cate',array('cid'=>$value['cid']));?>')"><i class="icon-trash">删除</i></a>
									<a href="<?php echo U('add_cate',array('cid'=>$value['cid']));?>" class="btn btn-mini btn-warning tooltip-warning" data-rel="tooltip" data-placement="left"><i class="icon-flag">修改</i></a>
								</div>
							</td>
						</tr>
					<?php }?><?php endif;?>
					</tbody>
				</table>
			</div><!--/span-->
		</div><!--/row-->
		
		<!-- PAGE CONTENT ENDS HERE -->
				  


	</div><!-- #main-content -->
	

	<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
		<i class="icon-double-angle-up icon-only"></i>
	</a>
	<!-- basic scripts -->
	<script src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/jquery.min.js"></script>
	<script type="text/javascript">
	window.jQuery || document.write("<script src='http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/jquery-1.9.1.min.js'>\x3C/script>");
	</script>
	
	<script src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/bootstrap.min.js"></script>
	<!-- page specific plugin scripts -->
	
	<script type="text/javascript" src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/jquery.dataTables.bootstrap.js"></script>
	<!-- ace scripts -->
	<script src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/ace-elements.min.js"></script>
	<script src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/ace.min.js"></script>
	<!-- inline scripts related to this page -->
	
	<script type="text/javascript">
	$(function() {
		var oTable1 = $('#table_report').dataTable( {
		"aoColumns": [
	      { "bSortable": false },
	      null, null,null, null, null,
		  { "bSortable": false }
		] } );


		$('table th input:checkbox').on('click' , function(){
			var that = this;
			$(this).closest('table').find('tr > td:first-child input:checkbox')
			.each(function(){
				this.checked = that.checked;
				$(this).closest('tr').toggleClass('selected');
			});
				
		});
		$('[data-rel=tooltip]').tooltip();
		})
	</script>
</body>
</html>